package panoramic;

import java.util.*;

import javax.media.opengl.GL;

public class PanoScene implements IRenderable
{
	private List<IRenderable> m_objects = new ArrayList<IRenderable>();
	
	public void addObject(IRenderable obj)
	{
		m_objects.add(obj);
	}

	public void render(GL gl)
	{
		for(IRenderable obj : m_objects)
		{
			obj.render(gl);
		}
	}
	
	public int getObjectCount()
	{
		return m_objects.size();
	}
}
